package com.biz.primus.ms.oms.vo;

import com.biz.primus.ms.oms.dao.po.OmsOrder;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

/**
 * @author yanweijin
 * @date 2017/11/14
 */
@Data
@Builder
@ApiModel("分单请求")
public class AllocationRequestVo implements OmsOrderResource{

	@ApiModelProperty("oms order id,和order实体/code必须提供其中一个")
	private Long orderId;

	@ApiModelProperty("oms order实体,和order id/code必须提供其中一个")
	private OmsOrder order;

	@ApiModelProperty("oms order唯一编号,和order id/实体必须提供其中一个")
	private String orderCode;

	@ApiModelProperty("操作员")
	private String operator;

	@ApiModelProperty("目标门店(最优先生效),如果指定了targetDepotCode,订单一定会分配给该门店,并且附带调拨标识")
	private String targetDepotCode;

	@ApiModelProperty("期望门店")
	private String expectDepotCode;

	@ApiModelProperty("是否自动分单:如果实体的depotCode参数已经有值,默认情况下不会走分单逻辑,当forceAutoAllocation=true时,不论order.depotCode值为什么,都会进行分单")
	private boolean forceAutoAllocation;

}
